package com.aos.erp.gov.ex.service.remote;

import com.aos.erp.gov.ex.model.dto.GatherSchoolDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "${erp-school-server:ERP-SCHOOL-SERVICE}", url = "${erp-school-server-url:}")
public interface SchoolService {

    @RequestMapping(value = "/service/school/getSchoolByDev", method = RequestMethod.GET)
    List<GatherSchoolDTO> getSchoolByDev(@RequestParam("usbKey") String usbKey, @RequestParam("deviceCode") String deviceCode);

}